<template>
  <div class="container">
    <el-container>
      <el-main>
        <div class="div1">
          <span class="div1-title">{{$t('Rewards.ExplanationForEarnings')}}：</span>
          <div class="div1-data">
            <span>{{$t('Rewards.plz')}}</span
            >
            <a href="#">{{$t('Rewards.clickHere')}}>></a>
          </div>
        </div>
        <div class="div2">
          <div class="div2Item">
            <span class="span1">{{$t('Rewards.MyPositionHeld')}}（USDT）</span>
            <span class="span2">123,456.00</span> 
            <span class="span3">{{$t('Rewards.TotalPositionHeldOnDerify')}}（USDT）987,654,321.00</span>
          </div>
          <div class="div2Item">
            <span class="span1">{{$t('Rewards.AccumulatedRewardsHistory')}}（USDT）</span>
            <span class="span2">123,456.00</span>
            <span class="span3">&nbsp;</span>
          </div>
          <div class="div2Item">
            <span class="span1">{{$t('Rewards.WithdrawableAccountBalance')}}（USDT）</span>
            <span class="span2">456.00</span>
            <div class="spanDiv" @click="isRedeem">
              <span>{{$t('Rewards.Withdraw')}}</span>
            </div>
          </div>
        </div>
        <p class="hisP">{{$t('Rewards.HistoryRecord')}}</p>
        <div class="tableDiv">
          <template>
            <el-table
              :data="tableData"
              stripe
              style="width: 100%"
              :header-cell-style="{
                background: '#212432',
                color: '#505363',
                border: '0px solid #2f3241',
                fontSize:' 15px'
              }"
              :cell-style="{
                background: '#2f3241',
                border: '0px ',
                fontSize:' 13px'
              }"
            >
              <el-table-column prop="date" :label="$t('Rewards.Time')"> </el-table-column>
              <el-table-column prop="name" :label=" $t('Rewards.FundAmount')+'（USDT）'">
              </el-table-column>
              <!-- "Earnings":"收入","Withdraw":"提取" -->
              <el-table-column prop="address" :label="$t('Rewards.Type')"> </el-table-column>
              <el-table-column prop="address" :label="$t('Rewards.Derivative')"> </el-table-column>
              <el-table-column prop="address" :label=" $t('Rewards.AccountBalance')+'（USDT）'">
              </el-table-column>
            </el-table>
          </template>
        </div>
      </el-main>
      <el-footer>
        <el-pagination background layout="prev, pager, next" :total="100">
        </el-pagination>
      </el-footer>
    </el-container>
    <el-dialog
      :title="$t('Rewards.Withdraw')"
      modal
      :lock-scroll="false"
      :visible.sync="dialogVisible"
      class="blacks-dialog mediums-dialog deposit-withdraw-dialog"
      width="30%">
      <div>
        <div class="divOne">
          <span class="numbDRY">{{$t('Rewards.Amount')}}</span>
           <input type="number" class="input borderless" v-model="num" placeholder="请输入数量!">
          <span class="NamebDRY">USDT</span>
        </div>
        <div class="divTwo">
          <span class="spaOne">{{$t('Rewards.MaximumAmountTobeWithdrew')}}456.00</span>
          <span class="spaTwo">{{$t('Rewards.All')}}</span>
        </div>
        <div class="divThree">{{$t('Rewards.Withdraw')}}</div>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false,
      num:0,
      titleName:"",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: " 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: " 1517 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: " 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: " 1516 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: " 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: " 1516 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: " 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: " 1516 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: " 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: " 1516 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: " 1519 弄"
        }
      ]
    };
  },
  methods: {
    isRedeem(){
      this.dialogVisible = true
    }
  },
};
</script>
<style lang="scss" scoped>
.gutter{
  display: block !important;
}
.container{
  max-width: 1107px;
}
.el-table::before,
.el-table--group::after,
.el-table--border::after {
  content: "";
  position: absolute;
  background-color: #2f3241 !important;
}
.el-main {
  // height: 912px;
  background: #13141f;
  // background: #3644d8;
  overflow: hidden;
  .div1 {
    margin-bottom: 30px;
    .div1-title {
      font-size: 16px;
      font-family: PingFangSC-Semibold;
      line-height: 25px;
      color: #e2e4ee;
      opacity: 1;
    }
    .div1-data {
      font-size: 12px;
      font-family: PingFang SC;
      font-weight: 400;
      line-height: 20px;
      color: #747788;
      margin-top: 10px;
      opacity: 1;
      a {
        color: #fae248;
      }
    }
  }
  .div2 {
    height: 170px;
    width: 100%;
    margin-bottom: 28px;
    display: flex;
    .div2Item {
      width: 430px;
      height: 160px;
      background: #282b3b;
      border-radius: 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      margin: 10px;
      .span1 {
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 22px;
        color: #b0b7d6;
        opacity: 1;
      }
      .span2 {
        font-size: 30px;
        font-family: DINbek Bold;
        font-weight: bold;
        line-height: 44px;
        color: #ffffff;
      }
      .span3 {
        font-size: 12px;
        font-family: PingFang HK;
        font-weight: 400;
        line-height: 20px;
        color: #b0b7d6;
        opacity: 1;
        text-align: center;
      }
      .spanDiv {
        width: 100px;
        height: 30px;
        background: #454233;
        line-height: 30px;
        text-align: center;
        border-radius: 5px;
        span {
          color: #fae248;
        }
      }
    }
  }
  .hisP {
    font-size: 16px;
    font-family: PingFangSC-Semibold;
    line-height: 25px;
    color: #e2e4ee;
  }
  .tableDiv {
    // height: 545px;
    background: #2f3241;
  }
}
.el-footer {
  height: 43px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

///////////
.divOne{
  background: #1b1d2b;
  padding: 5px 10px;
  display: flex;
  margin: 20px 0 10px;
  height: 44px;
  line-height: 44px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  input{
    background: #1b1d2b;
    border: 0;
    color: #fff;
    width: 70%;
    font-size: 16px;
  }
  .numbDRY , .NamebDRY{
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #B0B7D6;
    opacity: 1;
  }
  // input:focus {//获取焦点
  //       outline: 0px solid #1b1d2b;//边框不用border，用outline
  //       background: #1b1d2b;//背景色
  //       color: #fff;
  //     }
}
.divTwo{
  display: flex;
  justify-content: space-between;
  margin-bottom: 86px;
  .spaOne{
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #B0B7D6;
    opacity: 1;
  }
  .spaTwo{
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #FAE248;
    opacity: 1;
  }
}
.divThree{
  height: 40px;
  background: #524F3D;
  border-radius: 4px;
  line-height:40px;
  text-align: center;
  font-size: 14px;
  color: #FAE248;
  opacity: 1;
}
</style>
